public class Item
{
	private static String name;
	private static String type;
	private static String stat = "none";
	private static int bonus = 0;
	private static boolean stackable;
	private static int ammount;
	private static String descript;
	private static int value;
	public Item()
	{
		name = "[empty]";
		proporties();
	}
	public Item(String newName)
	{
		name = newName;
		proporties();
	}
	public static String name()
	{
		return name();
	}
	public static void changeName(String newName)
	{
		name = newName;
		ammount = 1;
		proporties();
	}
	private static void proporties()
	{
		switch(name)
		{
			case "Lyre":
				type = "hand";
				descript = "Offensively not worth much. Sounds pretty though.";
				value = 60;
				break;
			case "cotton shirt":
				type = "chest";
				descript = "A plain cotton shirt.";
				value = 10;
				break;
			case "cotton pants": 
				type = "legs";
				descript = "These jeans look pretty good on you";
				value = 10;
				break;
			case "shoes":
				type = "feet";
				descript = "These boots were made for walking.";
				value = 0;
				break;
		}	 
		switch(name)
		{
			//all stackable items
			case "arrows":
				stackable = true;
				ammount = 0;
				break;
			//all non stackable items
			case "Lyre": case "cotton shirt": case "cotton pants": case "shoes":
				stackable = false;
				ammount = 1; 
				break;
		}
	}
	public static String type()
	{
		return type;
	}
	public static int bonus()
	{
		return bonus;
	}
	public static String stat()
	{
		return stat;
	}
	public static void add(int num)
	{
		ammount+=num;
	}
	public static void remove(int num)
	{
		if(num > ammount)
		{
			System.out.println("You dont have enough to do that.");
		}
		else
		{
			ammount-= num;
		}
	}
	public static void descript()
	{
		System.out.println(descript);
	}
}
